<?php
/**
 * Home_model Class
 *
 */
class Home_model extends CI_Model {
	/**
	 * Constructor
	 */
	function Home_model()
		{
			parent::__construct();
		}
	
	function get_hak_akses($id_role,$tipe)
	{
		$this->db->select('hak_akses.id_fitur, hak_akses.id_role, fitur.url, fitur.icon, fitur.nama_fitur, fitur.tipe_fitur');
		$this->db->from('hak_akses');
		$this->db->where('hak_akses.id_role', $id_role);
		$this->db->join('fitur', 'hak_akses.id_fitur = fitur.id_fitur');
		$this->db->where('fitur.tipe_fitur', $tipe);
		return $this->db->get()->result();
	}
}
// END Home_model Class

/* End of file Home_model.php */ 
/* Location: ./system/application/model/Home_model.php */